"use strict";
cc._RF.push(module, '6f8d9/0gABLoZencAfjllni', 'level');
// Script/game/obj/level.ts

/*
 * @Author: llch
 * @Date: 2020-08-05 15:22:41
 * @LastEditTime: 2020-08-13 08:35:20
 * @LastEditors: Please set LastEditors
 * @Description: 关卡对象，提供操作关卡数据的方法
 * @FilePath: \shici_demo\assets\Script\game\obj\level.ts
 */
Object.defineProperty(exports, "__esModule", { value: true });
var Level = /** @class */ (function () {
    // 构造函数
    function Level() {
        this._idiomsInfo = undefined; // 所有的数据
        this._poemsInfo = undefined;
        this.levelLen = undefined;
        this.idiomInfo = undefined; // 某一关的数据
        this.poemInfo = undefined;
    }
    Level.prototype.init = function (idiomsInfo, poemsInfo, levelLen) {
        this._idiomsInfo = idiomsInfo;
        this._poemsInfo = poemsInfo;
        this.levelLen = levelLen;
    };
    Level.prototype.getLevelData = function (level) {
        var poimId = this._idiomsInfo[level].poemId;
        this.idiomInfo = this._idiomsInfo[level];
        this.poemInfo = this._poemsInfo[poimId];
    };
    // 全局单例
    Level.Instance = new Level();
    return Level;
}());
exports.Level = Level;
// 导出
exports.Lv = Level.Instance;

cc._RF.pop();